iT邦幫忙

0

Day 5|迴圈:讓 TaskFlow 管理多筆待辦事項

c#
  • 分享至 

  • xImage
  •  

今日學習目標

  • 學習內容: for、while、foreach、break。
  • 今日實作: 在主控台列出多筆待辦事項,並製作可重複操作的選單。
  • 完成標準: 能使用迴圈重複顯示選單、處理使用者輸入,並在需要時結束迴圈。

認識 for 迴圈

https://ithelp.ithome.com.tw/upload/images/20261014/20184430B6RPWM0I8h.png

認識 while 迴圈

https://ithelp.ithome.com.tw/upload/images/20261014/20184430fJxwPOsWAk.png

認識 foreach 迴圈

https://ithelp.ithome.com.tw/upload/images/20261014/20184430Lhwe5btqFS.png

使用 break 提前離開

https://ithelp.ithome.com.tw/upload/images/20261014/20184430qBquEORi1o.png

實作 TaskFlow 待辦事項程式https://ithelp.ithome.com.tw/upload/images/20261014/20184430aFImuY2Loo.pnghttps://ithelp.ithome.com.tw/upload/images/20261014/20184430YghXCsAxPR.pnghttps://ithelp.ithome.com.tw/upload/images/20261014/201844306NfacUATyQ.png


*提醒邦友,使用第三方服務/API 時,請務必評估資安風險與隱私保護
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言